import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';

@Component({
  selector: 'app-reorder',
  templateUrl: './reorder.page.html',
  styleUrls: ['./reorder.page.scss'],
})
export class ReorderPage implements OnInit {
  
  dataList = ['Item 1','Item 2','Item 3','Item 4','Item 5']

  constructor(private router: Router) { }

  ngOnInit() {
  }

  gotohome(){
    this.router.navigate(['/tabs/tab3'])
  }
  
  toggleReorder(ev){
    this.dataList = ev.detail.complete(this.dataList);
  }


}
